<div class="blazorise-codeblock">
<div class="csharp"><pre>
<span class="keyword">var</span> builder = WebApplication.CreateBuilder(args);

builder.WebHost.ConfigureKestrel((context, options) =&gt;
{
    options.ListenAnyIP(<span class="number">5001</span>, listenOptions =&gt;
    {
        listenOptions.Protocols = HttpProtocols.Http1AndHttp2AndHttp3;
        listenOptions.UseHttps();
    });
});
</pre></div>
</div>
